<html>
<head><meta charset="utf-8"><title>StorageLive and StorageDead · t-compiler/wg-mir-opt · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/index.html">t-compiler/wg-mir-opt</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive.20and.20StorageDead.html">StorageLive and StorageDead</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="205733844"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive%20and%20StorageDead/near/205733844" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Simon Vandel Sillesen <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive.20and.20StorageDead.html#205733844">(Aug 02 2020 at 16:23)</a>:</h4>
<p>When is it actually necessary to emit StorageLive and StorageDead for new locals/temps? For example <a href="https://rust.godbolt.org/z/xrzczT">https://rust.godbolt.org/z/xrzczT</a><br>
In this, <code>_2</code>and <code>_4</code> did not have any Storage{Live, Dead}</p>



<a name="205736025"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive%20and%20StorageDead/near/205736025" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive.20and.20StorageDead.html#205736025">(Aug 02 2020 at 17:24)</a>:</h4>
<p>I think it's not necessary, it just helps llvm</p>



<a name="206116316"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive%20and%20StorageDead/near/206116316" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive.20and.20StorageDead.html#206116316">(Aug 06 2020 at 08:38)</a>:</h4>
<p><code>async fn</code> lowering also benefits</p>



<a name="206116324"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive%20and%20StorageDead/near/206116324" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/StorageLive.20and.20StorageDead.html#206116324">(Aug 06 2020 at 08:38)</a>:</h4>
<p>and MIR optimizations might as well</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>